﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.OutputDto._0730
{
    /// <summary>
    ///  获取我的课程列表
    /// </summary>
    public class OutputMyCourse: MyCourseList
    {
        /// <summary>
        ///  最近更新作品列表
        /// </summary>
        public List<ModifyGoodList> editList { get; set; }
    }
    public class MyCourseList
    {
        /// <summary>
        ///  目录id
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  目录名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  目录缩略图
        /// </summary>
        public string folder_url { get; set; }
        /// <summary>
        ///  path
        /// </summary>
        public string folder_path { get; set; }
        /// <summary>
        ///  该课程（包括子目录）下的作品总数
        /// </summary>
        public int work_num { get; set; }
        /// <summary>
        ///  该课程（包括子目录）下有体验记录的作品数合计
        /// </summary>
        public int record_work_num { get; set; }
        /// <summary>
        ///  该课程（包括子目录）下的作品体验次数合计
        /// </summary>
        public int record_num { get; set; }
        /// <summary>
        ///  该课程（包括子目录）下的作品体验时长合计
        /// </summary>
        public int record_time { get; set; }
        /// <summary>
        ///  正确数
        /// </summary>
        public int ok_num { get; set; }
        /// <summary>
        ///  错误数
        /// </summary>
        public int error_num { get; set; }
        /// <summary>
        ///  该课程（包括子目录）下的答题正确率
        /// </summary>
        public decimal record_rate { get; set; }
        public OutputMyCourse ToOutputMyCourse()
        {
            return new OutputMyCourse
            {
                folder_id = folder_id,
                folder_name = folder_name,
                folder_path = folder_path,
                folder_url = folder_url,
                work_num = work_num,
                record_work_num = record_work_num,
                record_num = record_num,
                record_time = record_time,
                ok_num = ok_num,
                error_num = error_num,
                record_rate = record_rate
            };
        }
    }
    /// <summary>
    ///  更新的作品列表
    /// </summary>
    public class ModifyGoodList
    {
        /// <summary>
        ///  作品id
        /// </summary>
        public int file_id { get; set; }
        /// <summary>
        ///  作品名称
        /// </summary>
        public string file_name { get; set; }
        /// <summary>
        ///  作品简介
        /// </summary>
        public string file_note { get; set; }
        /// <summary>
        ///  价格
        /// </summary>
        public decimal file_price { get; set; }
        /// <summary>
        ///  所属课程
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  缩略图
        /// </summary>
        public List<T_DocBagFileRecord> photoOption { get; set; }
    }
}